package com.hqyj.controller;


import com.hqyj.pojo.PaperQuestion;
import com.hqyj.pojo.ResultVo;
import com.hqyj.service.IPaperQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2022-09-14
 */
@RestController
@RequestMapping("/paper-question")
public class PaperQuestionController {

    @Autowired
    IPaperQuestionService service;

    //查询分页
    @GetMapping("/queryQuetionByPage")
    public ResultVo queryByPage(PaperQuestion p){
        return service.queryQuetionByPage(p);
    }
    //新增
    @GetMapping("/add")
    public ResultVo add(PaperQuestion p){
        return service.add(p);
    }


}

